package org.future.esb;

import java.util.ArrayList;
import java.util.List;

/**
 *@date   2010-4-12 下午03:09:22
 *@author dycc
 *@file   org.future.esb.Outbound.java
 */
public class Outbound {
	private String tagName = "outbound";
	private List<Router> routers = new ArrayList<Router>();
	
	/**
	 * toString
	 */
	public String toString(){
		StringBuilder sb = new StringBuilder();
		sb.append("<" + tagName);
		sb.append(">");
		sb.append("\r\n");
		// add childs
		for(int i=0;i<routers.size();i++){
			sb.append(routers.get(i));
			sb.append("\r\n");
		}
		// add end element
		sb.append("</" + tagName + ">");
		return sb.toString();
	}
	public String getTagName() {
	    return tagName;
    }
	public void setTagName(String tagName) {
	    this.tagName = tagName;
    }
	public List<Router> getRouters() {
	    return routers;
    }
	public void setRouters(List<Router> routers) {
	    this.routers = routers;
    }
}
